package cn.gok.code.controller.Impl;

import cn.gok.code.controller.MyBaseController;
import cn.gok.code.entity.Clazz;
import cn.gok.code.entity.Student;
import cn.gok.code.mapper.ClazzMapper;
import cn.gok.code.service.Impl.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;

/**
 * @ClassName ClazzController
 * @Description TODO
 * @Author HP
 * @Date 17:23 2022/7/21
 * @Version 1.0
 **/
@RestController
@RequestMapping("clazz")
public class ClazzController extends MyBaseController<Clazz, ClazzMapper> {
    @Autowired
    private ClazzService service;

    @RequestMapping("selStudentsToClazz")
    public Map<Clazz, List<Student>> selStudentsToClazz(){
        return service.selStudentsToClazz();
    }

}
